package example.movieRental.afterRF;

/**
 * Created by thinkpad on 2015/2/8.
 */
public class NewReleasePrice extends Price {
    @Override
    int getPriceCode() {
        return Movie.NEW_RELEASE;
    }

    @Override
    public double getCharge(int daysRented) {
        return daysRented*3;
    }

    @Override
    int getFrequentRenterPoints(int daysRented) {
        return (daysRented > 1)?2:1;
    }
}
